package com.shihb.structuralpatterns.adapterpatterns;/**
 *Description:
 *Version:1.0.0
 *@author shihb
 *@date 2020/7/15 21:36
 */
public class InterfaceAdapter {

  public static void main(String[] args) {
    AbsAdapter absAdapter = new AbsAdapter() {
      @Override
      public void m1() {
        System.out.println("实现了m1");
      }
    };
    absAdapter.m1();
  }
}
interface A{
  void m1();
  void m2();
  void m3();
  void m4();
}
abstract class AbsAdapter implements  A{
  @Override
  public void m1() {}
  @Override
  public void m2() {}
  @Override
  public void m3() {}
  @Override
  public void m4() {}
}
